package hk.cic.cwrs.bio.integration;

import android.R.integer;
import android.os.Environment;

public class SEGlobal {
	
	//��־�ļ�·��
	public static final String PATH_WriteLog="";
	//�쳣��־�ļ�
	public static final String PATH_ErrorInfo="";
	
	public static final String KEY_IP="KEY_IP";
	public static final String KEY_UserId="KEY_UserId";
	public static final String KEY_Password="KEY_Password";
	public static final String KEY_SiteCode="KEY_SiteCode";
	public static final String KEY_SONo="KEY_SONo";
	public static final String KEY_Remark="KEY_Remark";
	public static final String KEY_BROADCAST_COUNT="KEY_BROADCAST_COUNT";
	public static final String KEY_LAST_SENDBROADCAST_SYSTEMTIME="KEY_LAST_SENDBROADCAST_SYSTEMTIME";
	//ExpiredDate
	public static final String KEY_ExpiredDate="KEY_ExpiredDate";
	public static final String KEY_Prefix_Status="KEY_Prefix_Status";
	public static final String KEY_PREFIX_VALUE="KEY_PREFIX_VALUE";
	public static final String KEY_SerialNumber_Status="KEY_SerialNumber_Status";
	public static final String KEY_DATA_TRANSFER_MODE="DATA_TRANSFER_MODE";
	public static final int STATUS_On=0;
	public static final int STATUS_Off=1;
	
	public static final String STATUS_ON_Descr="On";
	public static final String STATUS_Off_Descr="Off";
	
	public static final int DEBUG_STATUS_Enable=1;
	public static final int DEBUG_STATUS_Disabled=0;
	
	public static final int MAPPING_STATUS_Enable=1;
	public static final int MAPPING_STATUS_Disabled=0;
	
	public static final String CHECK_SUM_Header="SE";
	public static final String CHECK_SUM_Tail="83203330";
	
	
	/**
	 * ���Ϊ�SharedPreferences�ɮצW��
	 */
	public static final  String PATH_SystemLog = Environment.getExternalStorageDirectory().getPath() + "/SEBioCom_log/";
	public static final  String PATH_CheckLog = Environment.getExternalStorageDirectory().getPath() + "/SEBioCom_log/";
	public static final String PATH_ErrorLog=Environment.getExternalStorageDirectory().getPath() + "/SEBioCom_error/";
	public static final String PATH_PINMapping=Environment.getExternalStorageDirectory().getPath() + "/SEBioCom_DB/";
    public static final String DATABASE_PINMapping_Name="PINMapp.db";
    public static final String DATABASE_PINAchive_Name="CIClog.db";
    public static final String DATABASE_CICLOGBACKUP_Name="CIClog_Backup.db";
    public static final String PATH_DATABASE_CICLOGBACKUP_Name=PATH_PINMapping+"//"+DATABASE_CICLOGBACKUP_Name;
    public static final String TABLE_PINAchive="Transactionlog";
    public static final String TABLE_PINMAPPING="PINMap";
    public static final String PATH_DATABASE_PINMapping=PATH_PINMapping+"//"+DATABASE_PINMapping_Name;
    public static final String PATH_DATABASE_PINAchive=PATH_PINMapping+"//"+DATABASE_PINAchive_Name;
    
    public static final String TRANSFERLOG_TABLE_NAME="Traninoutlog";
    public static final String DATABASE_TransferLog_Name="TranInOutlog.db";
    public static final String PATH_DATABASE_TransferLog=PATH_PINMapping+"//"+DATABASE_TransferLog_Name;
    
    public static final String DATABASE_SECLOUD_TransferLog_Name="SECloudTranInOutlog.db";
    public static final String PATH_DATABASE_SECLOUD_TransferLog=PATH_PINMapping+"//"+DATABASE_SECLOUD_TransferLog_Name;
    
	public static final String BioProService_SHAREDPREFERENCE = "SEBioCom_data";
	public static final String DBPath = Environment.getExternalStorageDirectory().getPath() + "/SEBioCom_database/";
	public static final String DBName="PINMapping.db";
	public static final String DataBase_PINMapping=SEGlobal.DBPath+SEGlobal.DBName;
	public static final int PARAM_WiegandBits_34=34;
	public static final int PARAM_WiegandBits_26=26;
	public static final String KEY_Debug="KEY_Debug";
	public static final String KEY_Mapping="KEY_Mapping";
	public static final String KEY_LogStoreDays="KEY_LogStoreDays";
	public static final String KEY_PIN_Archive="KEY_PIN_Archive";
	
	public static final String KEY_Count="KEY_Count";
	public static final String KEY_Log_Store_LocationType="KEY_Log_Store_LocationType";
	public static final String KEY_Log_Store_Location="KEY_Log_Store_Location";
	
	
	public static final int RESULT_Success=1;
	public static final int RESULT_Fail=0;
	public static final int RESULT_Exception=-1;
	public static final int RESULT_RecordExist=2;
	public static final int TYPE_System_Log=0;
	public static final int TYPE_Error_Log=1;
	
	public static final int PARA_TYPE_Int=0;
	public static final int PARA_TYPE_Long=1;
	public static final int PARA_TYPE_Boolean=2;
	public static final int PARA_TYPE_String=3;
	
	public static final String ERROR_RESULT_Default="error";
	
	public static final int ERROR_Code=400;
	public static final int ERROR_Code_Auth=ERROR_Code+1;
	public static final int ERROR_Code_ConvertCICJSONObj=ERROR_Code+2;
	public static final int ERROR_Code_Verify=ERROR_Code+3;
	public static final int ERROR_Code_GetPara=ERROR_Code+4;
	public static final int ERROR_Code_SetPara=ERROR_Code+5;
	public static final int ERROR_Code_getPINByCWRNO=ERROR_Code+5;
	public static final int ERROR_Code_getDBFromSDCard=ERROR_Code+6;
	public static final int ERROR_Code_ContentProvider_onCreate=ERROR_Code+7;
	public static final int ERROR_Code_ContentProvider_Query=ERROR_Code+8;
	public static final int ERROR_Code_ContentProvider_Insert=ERROR_Code+9;
	public static final int ERROR_Code_ContentProvider_Delete=ERROR_Code+10;
	public static final int ERROR_Code_ContentProvider_Update=ERROR_Code+11;
	public static final int ERROR_Code_OTGDEVICEMANAGER_OpenDevice=ERROR_Code+12;
	public static final int ERROR_Code_OTGDEVICEMANAGER_CloseDevice=ERROR_Code+13;
	public static final int ERROR_Code_OTGDEVICEMANAGER_Verify=ERROR_Code+14;
	
	public static final int ERROR_Code_RS232DEVICEMANAGER_OpenDevice=ERROR_Code+15;
	public static final int ERROR_Code_RS232DEVICEMANAGER_CloseDevice=ERROR_Code+16;
	public static final int ERROR_Code_RS232DEVICEMANAGER_Enroll=ERROR_Code+17;
	public static final int ERROR_Code_RS232DEVICEMANAGER_Verify=ERROR_Code+18;
	
	public static final int ERROR_Code_BioProService_RequestTemplate=ERROR_Code+19;
	public static final int ERROR_Code_BioProService_VerifyTemplate=ERROR_Code+20;
	public static final int ERROR_Code_BioProService_IsAuthorization=ERROR_Code+21;
	public static final int ERROR_Code_BioProService_GetIMEI=ERROR_Code+22;
	public static final int ERROR_Code_BioProService_SendNotice=ERROR_Code+23;
	public static final int ERROR_Code_PinMappingProvider_IsExits=ERROR_Code+24;
	public static final int ERROR_Code_PinMappingProvider_Search=ERROR_Code+25;
	
	public static final int ERROR_Code_RegisterActivity_findView=ERROR_Code+26;
	public static final int ERROR_Code_BioProService_UpgradeService=ERROR_Code+27;
	
	
	public static final int DEVICE_OPEN_STATUS_Success=1;
	public static final int DEVICE_OPEN_STATUS_Failed=0;
	public static final int DEVICE_OPEN_STATUS_Error=-1;
	
	public static final int DEVICE_CLOSE_STATUS_Success=1;
	public static final int DEVICE_CLOSE_STATUS_Failed=-1;
	public static final int DEVICE_CLOSE_STATUS_Error=-1;
	
	//public static final int TRANSACTION_RESULT_Exception=-3;
	public static final int TRANSACTION_RESULT_Data_Invalid=-4;
	public static final int TRANSACTION_RESULT_Success=1;
	public static final int TRANSACTION_RESULT_DEVICE_Disconnected=-1;
	public static final int TRANSACTION_RESULT_Failed=0;
	public static final int TRANSACTION_RESULT_Undefined_Error=-2;
	
	
	public static final int ENROLL_RESULT_Success=1;
	public static final int ENROLL_RESULT_Failed=-2;
	public static final int ENROLL_RESULT_Error=-9;
	
	public static final int DATA_TRANSFER_MODE_OTG=0;
	public static final int DATA_TRANSFER_MODE_RS232=1;
	public static final int DATA_TRANSFER_MODE_DEFAULT=-1;
	
	public static final String DIR_SEBIOCOM_UPGRADE="SEBioCom_Upgrade";
	
	public static final String KEY_PACKAGE_VersionNo="VersionNo";
	//*************Added by danny20181030 Keyboard input userid from handkey,then verify template case***
	public static final String ACTION_USERID_TEMPLATE_VERIFY_SUCCESS="com.se.bio.intercom.userid.opengate";
	
	public static final String ACTION_TEMPLATE_VERIFY_SUCCESS="com.se.bio.intercom.template.verify.success";
	public static final String ACTION_SEND_WIEGAND_Completed="com.se.bio.send.wiegand.completed";
	public static final String ACTION_TEMPLATE_VERIFY_FAILED="com.se.bio.intercom.template.verify.failed";
	//调用TE WebService上传打卡记录 Added by danny 2017/03/15
	public static final String ACTION_CALLBACK_TE_INTERFACE="com.se.bio.cic.transfer.interface";
	public static final String KEY_REQUEST_VERIFY_CardNo="KEY_REQUEST_VERIFY_CardNo";
	public static final String KEY_REQUEST_VERIFY_SESSIONID="KEY_REQUEST_VERIFY_SESSIONID";
	public static final String KEY_CALLBACK_CIC_INTERFACE_Flag="KEY_CALLBACK_CIC_INTERFACE_Flag";
	
	public static final int CALLBACK_CIC_No=0;
	public static final int CALLBACK_CIC_Yes=1;
	public static final int CALLBACK_CIC_Default=-1;
	public static final String KEY_Callback_CIC_Interface="KEY_Callback_CIC_Interface";
	
	public static final int DEFAULT_VerifyTemplate_TimeOut=3;
	
	public static int RETURN_DataError=0;
	public static int RETURN_Success=1;
	public static int RETURN_Fail=2;
	public static int RETURN_DataExists=3;
	
	public static String KEY_TE_CLOUD_SERVER_IP="KEY_TE_CLOUD_SERVER_IP";
	public static final String KEY_CALLBACK_TE_Cloud="KEY_CALLBACK_TE_Cloud";
	public static final int CALLBACK_TE_Cloud_On=1;
	public static final int CALLBACK_TE_Cloud_Off=0;
	
	public static final int STATUS_SEND_WIEGAND_SUCCESS=1;
	public static final int STATUS_SEND_WIEGAND_FAIL=0;
	public static final int STATUS_SEND_WIEGAND_UNKOWN=-1;
	public static final String KEY_Callback_CIC_Delay="KEY_Callback_CIC_Delay";
	
	public static final String KEY_APP_VersionNo="KEY_APP_VersionNo";
	
	public static final String KEY_APP_AUTOUPGRADE_STARTTIME="KEY_APP_AUTOUPGRADE_STARTTIME";
	public static final String KEY_APP_AUTOUPGRADE_ENDTIME="KEY_APP_AUTOUPGRADE_ENDTIME";
	public static final String KEY_APP_IS_AUTOUPGRADE="KEY_APP_IS_AUTOUPGRADE";
	
	//************Added by danny20180510************************************
	public static final String KEY_SECLOUD_WebServer="KEY_SECLOUD_WebServer";
	public static final String KEY_SECLOUD_UserId="KEY_SECLOUD_UserId";
	public static final String KEY_SECLOUD_Password="KEY_SECLOUD_Password";
	public static final String KEY_SECLOUD_StartDate="KEY_SECLOUD_StartDate";
	public static final String KEY_SECLOUD_ExpiryDate="KEY_SECLOUD_ExpiryDate";
	//****************END***************************************************
	public static final String KEY_SECLOUD_IO="KEY_SECLOUD_IO";
	public static final int IO_STATUS_Default=0;
	public static final int IO_STATUS_I=1;
	public static final int IO_STATUS_O=2;
	public static final int IO_STATUS_BI=3;
	public static final int IO_STATUS_BO=4;
	//************************Added by danny20180827*************
	public static final String KEY_ReverseCardNo="KEY_ReverseCardNo";  //CardNo 反向
	//****************************END****************************
	//************************Added by danny20181106**************
	public static final String KEY_REQUEST_VERIFY_TYPE="KEY_REQUEST_VERIFY_TYPE";
	public static final String VERIFY_TYPE_CARD_TEMPLATE="1";
	public static final String VERIFY_TYPE_USERID_TEMPLATE="2";
	public static final String DEVICE_TYPE_C530="1";
	//************************END*********************************
	
	//*******Added by danny20191211*************
	public static final String KEY_CALLBACK_CIC_ResultLog="KEY_CALLBACK_CIC_ResultLog";
	public static final String KEY_TIPSDIALOG_IsShow="KEY_TIPSDIALOG_IsShow";
	public static final String KEY_TIPSDEVICE_Type="KEY_TIPSDEVICE_Type";
	public static final String KEY_TIPSDIALOG_Timeout="KEY_TIPSDIALOG_Timeout";
	
	public static final int CALLBACK_CIC_ResultLog_No=0;
	public static final int CALLBACK_CIC_ResultLog_Yes=1;
	
	public static final int SHOW_TIPSDIALOG_No=0;
	public static final int SHOW_TIPSDIALOG_Yes=1;
	public static final int TIPSDEVICE_TYPE_Handkey=0;
	public static final int TIPSDEVICE_TYPE_FingerPrint=1;
	public static final int TIPSDEVICE_TYPE_Face=2;
	public static final int TIPSDEVICE_TYPE_Other=3;
	public static final String DEFAULT_SERVER_Address="smart.cmtrack.hk:8000";
	public static final String KEY_YellowCardInterval="KEY_YellowCardInterval";
	//********************END*********************
	
}
